package com.IO;

public class Student {
    private String name;
    private  Integer yuwen;
    private  Integer shuxue;
    private  Integer yingyu;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getYuwen() {
        return yuwen;
    }

    public void setYuwen(Integer yuwen) {
        this.yuwen = yuwen;
    }

    public Integer getShuxue() {
        return shuxue;
    }

    public void setShuxue(Integer shuxue) {
        this.shuxue = shuxue;
    }

    public Integer getYingyu() {
        return yingyu;
    }

    public void setYingyu(Integer yingyu) {
        this.yingyu = yingyu;
    }

    public Student() {
    }

    public Student(String name, Integer yuwen, Integer shuxue, Integer yingyu) {
        this.name = name;
        this.yuwen = yuwen;
        this.shuxue = shuxue;
        this.yingyu = yingyu;
    }

    public int sum(){
        return this.yuwen+this.shuxue+this.yingyu;
    }
}
